//
//  choseView.m
//  1243
//
//  Created by ym on 16/7/7.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "choseView.h"
#import "sizeView.h"
#import "AttributeView.h"
@interface choseView ()

{
    NSInteger tempHeigh;
}
@property (nonatomic,strong)UIScrollView *backView;

@end

@implementation choseView

- (instancetype)initWithFrame:(CGRect)frame{
    self =  [super initWithFrame:frame];
    if (self) {
        tempHeigh = 0;
        [self creatLabel];
    }
    
    return self;
}


- (void)creatLabel{
    self.backView = [[UIScrollView alloc]init];
    [self addSubview:self.backView];
    
  
    
    
}
- (void)layoutSubviews{
    [super layoutSubviews];

    for (NSInteger i = 0; i < self.arrDic.count; i++) {
        NSArray *arr = self.arrDic[i][@"value"];
         AttributeView *attributeViewDS = [AttributeView attributeViewWithTitle:@"电商" titleFont:[UIFont boldSystemFontOfSize:17] attributeTexts:arr viewWidth:kScreenW];
        attributeViewDS.y = tempHeigh;
        
        tempHeigh =  CGRectGetMaxY(attributeViewDS.frame) + 15;
        [self addSubview:attributeViewDS];
        
    }
    
    
    
}


@end
